home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_274 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  456 b   |  20 lines

  1. on(press){
  2.    if(_root.micon._currentframe == 19)
  3.    {
  4.       _root.indicount = 100;
  5.       _root.indialogue = "The onion is now cut open.";
  6.       i = 1;
  7.       while(i < 40)
  8.       {
  9.          _root.micon.gotoAndStop(1);
  10.          _root.sfx.gotoAndStop(3);
  11.          if(_root.inven["box" + i]._currentframe == 40)
  12.          {
  13.             _root.inven["box" + i].gotoAndStop(41);
  14.          }
  15.          gotoAndStop(41);
  16.          i++;
  17.       }
  18.    }
  19. }
  20.